package com.jeesite.modules.utils;

import com.github.t9t.minecraftrconclient.RconClient;
import com.jeesite.modules.commands.entity.Commands;

public class ExecuteCommandsTools {
    public static String host = "localhost";
    public static int port = 25575;
    public static String password = "gongDSB";
    public static String execute(String commands){
        try(RconClient rconClient = RconClient.open(host,port,password)){
            return rconClient.sendCommand(commands);
        }
    }
}
